/* Copyright (c) 2004-2024 peigen.info. All rights reserved. */

package info.peigen.hotpot.common.service.base;

import lombok.*;
import lombok.experimental.Accessors;
import lombok.experimental.FieldDefaults;
import lombok.experimental.SuperBuilder;

/**
 * <b>(ServicePageOrderBase)</b>
 *
 * @author Peigen
 * @version 1.0.0
 * @since 2022/1/27
 */
@EqualsAndHashCode(callSuper = true)
@SuperBuilder
@Data
@NoArgsConstructor
@AllArgsConstructor
@FieldDefaults(level = AccessLevel.PROTECTED)
@Accessors(chain = true)
public class ServicePageOrderBase extends ServiceOrderBase {
    /** 客户ID */
    String customerId;
    /** 当前页 */
    @Builder.Default
    Integer pageNum   = 1;
    /** 每页数据条数量 */
    @Builder.Default
    Integer pageSize  = 10;
    /** 排序字段 */
    @Builder.Default
    String  orderName = "create_time";
    /** 顺序：默认反序 */
    @Builder.Default
    Boolean desc      = true;
}